core: Initialize variables in fsck
authorColin Walters <walters@verbum.org>
Thu, 8 Dec 2011 23:23:13 +0000 (18:23 -0500)
committerColin Walters <walters@verbum.org>
Thu, 8 Dec 2011 23:23:25 +0000 (18:23 -0500)
Otherwise we segfault on an unhandled filename.

src/libostree/ostree-repo.c

index af198c838a39deaec18bbdcd788be8b5e28d1965..f1807738f4ac8c2da8471d768f52b1beae3cbc1e 100644 (file)
@@ -1905,8 +1905,8 @@ iter_object_dir (OstreeRepo             *self,
     {
       const char *name;
       guint32 type;
-      char *dot;
-      GFile *child;
+      char *dot = NULL;
+      GFile *child = NULL;
       GString *checksum = NULL;
       OstreeObjectType objtype;